import { defineStore } from "pinia";

export const businessListStore = defineStore("businessListStoreId", () => {
    const detailData = ref([
    
        {
            type:"text",
            prop:"channelMerchantName",
            name:"渠道商名称",
            value:null
        },
        {
            type:"text",
            prop:"channelMerchantCode",
            name:"渠道商编码",
            value:null
        },
        {
            type:"text",
            prop:"channelMerchantType",
            name:"渠道商类型",
            value:null
        },
        {
            type:"text",
            prop:"contactMobile",
            name:"渠道商联系人手机号",
            value:null
        },
        {
            type:"text",
            prop:"corporationName",
            name:"渠道商法人",
            value:null
        },
        {
            type:"text",
            prop:"corporationCertNo",
            name:"渠道商法人证件号",
            value:null
        },
        {
            type:"text",
            prop:"uscc",
            name:"统一社会信用代码",
            value:null
        },
        {
            type:"text",
            prop:"locationProvinceName",
            name:"所在地-省",
            value:null
        },
        {
            type:"text",
            prop:"locationCityName",
            name:"所在地-市",
            value:null
        },

        {
            type:"text",
            prop:"remarks",
            name:"备注",
            value:null
        }
    ])
    const tableProp = reactive(
        {
            name: "supplierList",
            propsList: [
                {
                    label: '渠道商名称',
                    prop: 'channelMerchantName',
                    type: 'copy',
                    minWidth: '200px',
                    hidden: true,
                },
                {
                    label: '渠道商编码',
                    prop: 'channelMerchantCode',
                    type: 'copy',
                    minWidth: '280px',
                    hidden: true,
                },
                {
                    label: '渠道商类型',
                    prop: 'channelMerchantType',
                    type: 'normal',
                    minWidth: '130px',
                    hidden: true,
                },
                {
                    label: '渠道商联系人',
                    prop: 'contactName',
                    type: 'normal',
                    minWidth: '120px',
                    hidden: true,
                },
                {
                    label: '渠道商法人',
                    prop: 'corporationName',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '渠道商手机号',
                    prop: 'contactMobile',
                    type: 'normal',
                    minWidth: '120px',
                    hidden: true,
                },
                {
                    label: '渠道商法人证件号',
                    prop: 'corporationCertNo',
                    type: 'normal',
                    minWidth: '170px',
                    hidden: true,
                },
                {
                    label: '社会信用代码',
                    prop: 'uscc',
                    type: 'normal',
                    minWidth: '170px',
                    hidden: true,
                },
                {
                    label: '所在地-省',
                    prop: 'locationProvinceName',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    label: '所在地-市',
                    prop: 'locationCityName',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
           
                {
                    label: '备注',
                    prop: 'remarks',
                    type: 'normal',
                    minWidth: '100px',
                    hidden: true,
                },
                {
                    type: 'handle',
                    label: '操作',
                    minWidth: '150px',
                    btnType: ' link',
                    slotName: 'handle',
                    hidden: true,
                }
            ]
    })
    
    return {
        detailData, tableProp
    }
})